package com.tssm.action;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts2.ServletActionContext;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.opensymphony.xwork2.ActionSupport;
import com.tssm.cache.memcached.TsSessionUtil;
import com.tssm.pojo.SarcSupplier;
@Controller("indexAction")
@Scope("prototype")
public class IndexAction extends ActionSupport {

	private static final long serialVersionUID = 1L;

	private String message;

	private SarcSupplier loginsupplier;

	public String execute() throws Exception {
		HttpServletRequest request = ServletActionContext.getRequest();
		loginsupplier = TsSessionUtil.getTsUser(request);
		return SUCCESS;
	}
	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public SarcSupplier getLoginsupplier() {
		return loginsupplier;
	}

	public void setLoginsupplier(SarcSupplier loginsupplier) {
		this.loginsupplier = loginsupplier;
	}


}
